package designPattern.behavioralPattern.strategy;

/**
 * @author wei.zhao
 * @description: 环境类
 * @date 2021年12月20日 11:52
 */
public class Context {

    private Strategy strategy;

    public Context(Strategy strategy) {
        this.strategy = strategy;
    }

    public void strategyMethod() {
        strategy.strategyMethod();
    }
}
